﻿// JavaScript Document

var strVar = "";
    strVar += "<div class=\"wrap01\">\n";
    strVar += "  <div id=\"title\" class=\"mgn-pding\"> <a id=\"cd-menue \" class=\"wplyBtn\"><img id=\"menuepic\" src=\"/img/menue.png\"><\/a>\n";
    strVar += "    <div class=\"logo\"><\/div>\n";
    strVar += "    <a onclick=\"ydtopenchat();return false;\" href=\'javascript:;\' target=\'_blank\'><img id=\"mesg01\" src=\"/img/serverspic.png\"><\/a> <\/div>\n";
    strVar += "  <div class=\"headMenu\">\n";
    strVar += "    <div class=\"menuTab\">\n";
    strVar += "      <ul>\n";
    strVar += "        <li class=\"menuTabAa on\"><i><\/i>业务领域<\/li>\n";
    strVar += "        <li class=\"menuTabBb\"><i><\/i>服务项目<\/li>\n";
    strVar += "      <\/ul>\n";
    strVar += "    <\/div>\n";
    strVar += "    <div class=\"menuDiv\">\n";
    strVar += "    <\/div>\n";
    strVar += "  <\/div>\n";
    strVar += "<\/div>\n";

$(document).ready(function(){
	var header = document.getElementById("top");
	header.innerHTML=strVar;

	$('.headMenu').css('height',$("body").height());

	//$('#cd-menue').click(function(){
//		var isshow = $('.headMenu').css('display');
//		if(isshow=='none'){
//			$('.headMenu').css('display','block');
//			}else{
//				$('.headMenu').css('display','none');
//			}
//	});
//
//	$('.menuTabBb').click(function(){
//	  $('.menuTabBb').addClass('on');
//	  $('.menuTabAa').removeClass('on');
//	  $('.contentBb').css('display','block');
//	  $('.contentAa').css('display','none');
//	});
//
//	$('.menuTabAa').click(function(){
//	  $('.menuTabAa').addClass('on');
//	  $('.menuTabBb').removeClass('on');
//	  $('.contentAa').css('display','block');
//	  $('.contentBb').css('display','none');
	//});
});


//底部
var strVar01 = "";
    strVar01 += "<div id=\"footer\">\n";
    strVar01 += "  <div id=\"logo_tel_addr\"> <img src=\"/img/footpic01.png\">\n";
    strVar01 += "    <div>\n";
    strVar01 += "      <p id=\"gstel\" class=\"mgn-pding\"><img src=\"/img/footpic02.png\">联系电话：<a href=\"tel:4007707107\">4007707107<\/a><\/p>\n";
    strVar01 += "      <p id=\"gsaddr\" class=\"mgn-pding\"><img src=\"/img/footpic03.png\">上海总部：上海市杨浦区国伟路135号9号楼<\/p>\n";
    strVar01 += "    <\/div>\n";
    strVar01 += "  <\/div>\n";
    strVar01 += "  <p class=\"pf01 mgn-pding\">上海微谱检测科技集团股份有限公司 | <a href=\"http://beian.miit.gov.cn\">沪ICP备11022773号-11</a>|版权声明 Microspectrum Technology Co.,Ltd.<\/p>\n";
    strVar01 += "  <p class=\"pf02 mgn-pding\">Microspectrum technology co.ltd<\/p>\n";
    strVar01 += "<\/div>\n";
    strVar01 += "<div class=\"m_foot\">\n";
    strVar01 += "   <div class=\"m_footMenu\">\n";
    strVar01 += "       <a class=\"m_bottom-logo\">首页<\/a>\n";
    strVar01 += "       <a class=\"wplyBtn m_message\">在线留言<\/a>\n";
    strVar01 += "       <a href=\"tel:4007707107\" class=\"m_iphone\" id=\"m_tel\">热线电话<\/a>\n";
    strVar01 += "       <a  class=\"m_online\" onclick=\"ydtopenchat();return false;\" href=\'javascript:;\' target=\'_blank\' id=\"m_on\">在线咨询<\/a>\n";
    strVar01 += "    <\/div>\n";
    strVar01 += "<\/div>\n";

$(document).ready(function(){
	var foot = document.getElementById("change-foot");
	foot.innerHTML=strVar01;
	
	/*移动端点击底部留言弹出留言框*/
	$('.wplyBtn').click(function () {
		$(".wp_liuyan").css("display","block");
	})
});